<%-- 
    Document   : alteraDadosAdm
    Created on : 07/07/2011, 23:11:25
    Author     : Carlos
--%>
<%@ include file="../validaUsuario.jsp" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<div id="page">
       <table border="0" align="center">
        <td>
        <fieldset>
    <legend><b>DADOS CADASTRAIS</b></legend>
    <form action="atualizaCadastroAdm.jsp" method="post" name="cadastroUsuario" onsubmit="return validaCamposCadastro('rd_sexo')">
    <table border="0">
      <tr>
        <td>Nome Completo: </td>
        <td><input type="text" name="txt_nome" title="Nome" size="30" value="<% out.println(usuario.getNome()); %>"></td>
      </tr>
      <tr>
        <td>Matrícula: </td>
        <td><input type="text" name="txt_matricula" title="Matrícula" size="30" readonly value="<% out.println(usuario.getMatricula()); %>" onKeydown="Formata(this,20,event,2)" onkeypress="return SomenteNumero(event)"></td>
      </tr>
      <tr>
        <td>Sexo: </td>
        <td><input type="radio" name="rd_sexo" title="Sexo" value="masculino" <% if(usuario.getSexo().equalsIgnoreCase("masculino")) out.println("CHECKED");%>>Masculino
        <input type="radio" name="rd_sexo" title="Sexo" value="feminino" <% if(usuario.getSexo().equalsIgnoreCase("feminino")) out.println("CHECKED");%>>Feminino</td>
      </tr>
      <tr>
        <td>Email: </td>
        <td><input type="text" name="txt_email" title="E-mail" size="30" value="<% out.println(usuario.getEmail()); %>"></td>
      </tr>
      <tr>
        <td>Senha: </td>
        <td><input type="password" name="txt_senha" title="Senha" size="30" value="<% out.println(usuario.getSenha()); %>"></td>
      </tr>
      <tr>
        <td>Redigite a Senha: </td>
        <td><input type="password" name="txt_senha2" title="Rdigite a Senha" size="30" value="<% out.println(usuario.getSenha()); %>"</td>
      </tr>
      <tr>
       <td height="26"><input type="submit" name="btn_envia" value="Atualizar" title="Atualizar" />
          <input type="reset" name="btn_limpa" value="Limpar Campos" title="Limpar Campos"/></td>
      </tr>
    </table>
    </form>
  </fieldset>
     </td>
     </table>
    </div>